package net.lsr.demo.helper;

import java.io.File;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;

/**
 * desc: 文件帮助类
 * @author lsr
 * @version 2014年6月4日
 */
@Component
public class FileHelper {
	private static final Logger logger = LoggerFactory.getLogger(FileHelper.class);
	public boolean isFileExist(String filePath){
		File f = new File(filePath);
		boolean isExists = f.exists();
		logger.debug("file-{} exists:{}", new Object[]{filePath, isExists});
		return isExists;
	}
}
